import Vue from 'vue'

import App from './pages'
import router from './router'
import store from './store'
import request from './utils/request'

//将二次封装的axios实例挂载到原型上，这样每个组件中都可以
//使用this.$http获取到该实例
Vue.prototype.$http = request

import './style/index.less'
import './fonts/iconfont'


import Vant from 'vant';
import 'vant/lib/index.css';
import { Lazyload } from 'vant';
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant';
import { ShareSheet } from 'vant';

Vue.use(ShareSheet);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Vant);
Vue.use(Lazyload);



import plugin from './components'
Vue.use(plugin)

new Vue({
    router,
    store,
    render:ce=>ce(App)
}).$mount('#app')